import { request } from '../request/request.js'

//  首页轮播图
export const getImglist = () => {
    return request.get('/index/imglist');
}

// 首页环线卡片 
export const getLoop = () => {
    return request.get('/index/loop');
}

// 环线详情
export const getLoopDetail = (loopId) => {
    return request.get(`/index/loop/detail?loopid=${loopId}`);
}

//热门推荐主题
export const getHotTopic = () => {
    return request.get(`/index/recommendation/topic`);
}

//搜素接口
export const searchShop = (searchInfo) => {
    return request.get(`/tripshop/search?search=${searchInfo}`);
}
// 获取时间分类的接口
export const getDayCategory = () => {
    return request.get(`/tripshop/tripDay`)
}
//时间筛选接口
export const getTripDay = (day) => {
    return request.get(`/tripshop/search?trip_day=${day}`)
}
// https://www.lpmyblog.cn/applet/tripshop/search?search=贡嘎&trip_day=4